//
//  Schedule.m
//  Fangmm
//
//  Created by ChaoZhou on 16/3/16.
//  Copyright © 2016年 com.fangmm. All rights reserved.
//

#import "Schedule.h"
#import "HomePageUser.h"
#import "House.h"

@implementation Schedule
-(instancetype)initWithDic:(NSDictionary *)Dic
{
    self = [super init];
    if (self)
    {
        [self setValuesForKeysWithDictionary:Dic];
        _scheduleArray = [NSMutableArray array];
        _menberArray   = [NSMutableArray array];
        for (NSDictionary *listDic in self.list)
        {
            House *house = [[House alloc]initWithDic:listDic];
            [_scheduleArray addObject:house];
        }
        for (NSDictionary *membersDic in self.members)
        {
            HomePageUser *user = [[HomePageUser alloc]initWithDic:membersDic];
            [_menberArray addObject:user];
        }
    }
    return self;
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

@end
